package com.jwdf.uda.ui.adapter.viewholder;

import android.databinding.DataBindingUtil;
import android.view.View;
import com.jwdf.uda.databinding.ItemQuizMainDescTxtBinding;
import com.jwdf.uda.ui.adapter.AbsViewHolder;
import com.jwdf.uda.ui.adapter.item.QuizDetailItem;

/**
 * Created by Administrator on 2016/9/20.
 */
public class QuizDescTextViewHolder extends AbsViewHolder<QuizDetailItem> {
    private ItemQuizMainDescTxtBinding mItemBinding;

    public QuizDescTextViewHolder(View convertView) {
        super(convertView);
        mItemBinding = DataBindingUtil.bind(convertView);
    }

    @Override
    protected void onBindView(final QuizDetailItem item) {
//        mItemBinding.tvDescTxt.setVisibility(!TextUtils.isEmpty(item.quizMainDescTxt) ? View.VISIBLE : View.GONE);
        mItemBinding.tvDescTxt.setText(item.quizMainDescTxt);
    }
}
